from flask_wtf import FlaskForm
from wtforms import StringField
from wtforms.validators import DataRequired, Length


class ChatForm(FlaskForm):
    word = StringField('query', validators=[DataRequired(message="问题不能为空"), Length(min=1, max=2000, message="最多输入2000个字")])